public class IndexNum {
    public static void main(String[] args){
        int[] arr = {52,63,1,14,36,95,6,10,27,40};
        int index = 0;
        for(int i = 1;i<arr.length;i++){
            if (arr[index] < arr[i]){
                index = i;
            }
        }
        System.out.println("最大值是第"+(index+1)+"个");
        System.out.println("数值为："+arr[index]);
    }
}
